package com.ele.Dao;

import com.ele.Pojo.Business;

import java.sql.SQLException;
import java.util.List;

public interface BusinessDao {
    //查所有
    public List<Business> getAllBusiness() throws SQLException;
    //注册
    public Integer businessRegister(String account, String password, String telephone, String contact) throws SQLException;

    //登录
    public Business businessLogin(String account,String password) throws SQLException;

    //修改
    public Integer UpdateBusiness(String account,String password,String telephone,String contact ,String id) throws SQLException;
    //删除
    public Integer deleteBusiness(String id) throws SQLException;
    //查找
    public List<Business> queryBusiness(String account,String telephone,String contact) throws SQLException;

    /**
     * 查询商家列表（管理员功能）
     */
    List<Business> findAll(String account , String contact, String telephone,String currentPage,String pageSize)throws SQLException;

    /**
     * 查询总记录数
     * @return
     */
    Long selectCount() throws SQLException;

}
